import random
from itertools import count

i = 0
salary = 10000
for i in range(1,21):

    num = random.randint(1,10)

    if salary <= 0:
        print("没钱了，下个月再来")
        break

    if num > 5:
        salary -= 1000
        print(f"向员工{i}发放工资1000，账户余额还剩余{salary}元")
    else:
        print(f"员工{i},绩效分{num},低于5,不发工资，下一位")